package com.niiwoo.civet.mobile.vo.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.NotBlank;

@Setter
@Getter
@ApiModel
public class AccountRegisterPrepareRequestVO {

    @ApiModelProperty(value = "姓名", required = true)
    private String name;

    @NotBlank(message = "身份证号不能为空")
    @Pattern(regexp = "^[0-9]{17}[0-9X]$", message = "身份证号错误")
    @ApiModelProperty(value = "身份证号", required = true)
    private String idCardNo;

    @NotBlank(message = "银行卡号不能为空")
    @ApiModelProperty(value = "银行卡号", required = true)
    private String bankCardNo;

    @NotBlank(message = "银行卡预留手机号不能为空")
    @ApiModelProperty(value = "银行卡预留手机号", required = true)
    private String bankCardMobileNo;

    @NotNull
    @ApiModelProperty(name = "账户角色(3-借款 2-投资)", notes = "3-借款 2-投资", required = true)
    private Byte accountRole;

    @ApiModelProperty(name = "H5页面跳转url")
    private String redirectUrl;

    @ApiModelProperty(name = "访问令牌(H5)", notes = "访问令牌", required = true)
    private String token;

    @ApiModelProperty(name = "第三方渠道(H5) 1-融360 2-卡牛, 3-机构极速借 默认channel=1", notes = "第三方渠道", required = false)
    private Integer channel;

    @ApiModelProperty(name = "机构CODE", notes = "当channel=3,即机构极速借时才有", required = false)
    private String orgCode;

}
